//
//  RoundImageView.swift
//  CloudIMTest
//
//  Created by dengwei on 16/1/12.
//  Copyright © 2016年 dengwei. All rights reserved.
//

import UIKit

@IBDesignable
class RoundImageView: UIImageView{
    
    @IBInspectable var cornersRadius: CGFloat = 0{
        
        didSet{
            layer.cornerRadius = cornersRadius
            layer.masksToBounds = cornersRadius > 0
        }
    }
    
    @IBInspectable var bordersWidth:CGFloat = 0 {
        
        didSet{
            layer.borderWidth = bordersWidth
        }
    }
    
    @IBInspectable var bordercolor:UIColor? {
    
        didSet{
            layer.borderColor = bordercolor?.CGColor
        }
    }
    
    
}
